using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Resources;
using System.Globalization;


    public partial class mh_dm_baocaokhuvuc_ban : DevExpress.XtraEditors.XtraForm
    {
        CultureInfo culture;
        public string str_loaibaocao = "";

        #region "Muti language"

        private void SetLanguage_banhang(string cultureName)
        {
            try
            {
                culture = CultureInfo.CreateSpecificCulture(cultureName);
                ResourceManager rm = new ResourceManager("LPV_POS.Muti_language.MyResource", typeof(mh_dm_baocaokhuvuc_ban).Assembly);
                lbel_khuvuc.Text = rm.GetString("khuvuc", culture);
                lbel_ban.Text = rm.GetString("ban", culture);
                label1.Text = rm.GetString("khuvucchitiet", culture);
                lbel_thoat.Text = rm.GetString("thoat", culture);
               
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "Note");
            }

        }

        #endregion
        private void lickdown(object sender, MouseEventArgs e)
        {
            ((Label)sender).BackColor = Color.FromArgb(192, 249, 251);
            ((Label)sender).BorderStyle = BorderStyle.Fixed3D;
        }

        private void lickup(object sender, MouseEventArgs e)
        {
            ((Label)sender).BackColor = Color.FromArgb(144, 196, 255);
            ((Label)sender).BorderStyle = BorderStyle.FixedSingle;
        }
        public Boolean khuvuc_ban = false;
        public mh_dm_baocaokhuvuc_ban()
        {
            InitializeComponent();
            culture = CultureInfo.CurrentCulture;
        }
       

        private void mh_dm_baocaokhuvuc_ban_Load(object sender, EventArgs e)
        {
            cpublic ocpublic = new cpublic();
            string str_lang = ocpublic.Registry_Get("mh_main_lang");
            if (str_lang == "")
                str_lang = "vi-VN";
            SetLanguage_banhang(str_lang);
        }

        private void lbel_khuvuc_Click(object sender, EventArgs e)
        {
            str_loaibaocao = "khuvuc";
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void lbel_ban_Click(object sender, EventArgs e)
        {
            str_loaibaocao = "ban";
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void lbel_thoat_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void label1_Click(object sender, EventArgs e)
        {
            str_loaibaocao = "khuvuc_ct";
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

      

     

       
    }